package com.weblog.weblog.admin.model.vo.wiki;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author gc
 * @date 2024年01月26日 15:11
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "更新知识库入参 VO")
public class UpdateWikiReqVO {
    @NotNull(message = "ID 不能为空")
    private Long id;

    @NotNull(message = "标题不能为空")
    @Length(min = 1,max = 20,message = "标题字数大于 1 ，小于 20")
    private String title;

    @NotNull(message = "摘要不能为空")
    private String summary;

    @NotNull(message = "封面不能为空")
    private String cover;
}
